package com.ruoyi.warehouse.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.warehouse.mapper.LwWarehousinginfoMapper;
import com.ruoyi.warehouse.domain.LwWarehousinginfo;
import com.ruoyi.warehouse.service.ILwWarehousinginfoService;

/**
 * 仓库记录信息Service业务层处理
 * 
 * @author sll
 * @date 2023-10-13
 */
@Service
public class LwWarehousinginfoServiceImpl implements ILwWarehousinginfoService 
{
    @Autowired
    private LwWarehousinginfoMapper lwWarehousinginfoMapper;

    /**
     * 查询仓库记录信息
     * 
     * @param id 仓库记录信息主键
     * @return 仓库记录信息
     */
    @Override
    public LwWarehousinginfo selectLwWarehousinginfoById(Long id)
    {
        return lwWarehousinginfoMapper.selectLwWarehousinginfoById(id);
    }

    /**
     * 查询仓库记录信息列表
     * 
     * @param lwWarehousinginfo 仓库记录信息
     * @return 仓库记录信息
     */
    @Override
    public List<LwWarehousinginfo> selectLwWarehousinginfoList(LwWarehousinginfo lwWarehousinginfo)
    {
        return lwWarehousinginfoMapper.selectLwWarehousinginfoList(lwWarehousinginfo);
    }

    /**
     * 新增仓库记录信息
     * 
     * @param lwWarehousinginfo 仓库记录信息
     * @return 结果
     */
    @Override
    public int insertLwWarehousinginfo(LwWarehousinginfo lwWarehousinginfo)
    {
        return lwWarehousinginfoMapper.insertLwWarehousinginfo(lwWarehousinginfo);
    }

    /**
     * 修改仓库记录信息
     * 
     * @param lwWarehousinginfo 仓库记录信息
     * @return 结果
     */
    @Override
    public int updateLwWarehousinginfo(LwWarehousinginfo lwWarehousinginfo)
    {
        return lwWarehousinginfoMapper.updateLwWarehousinginfo(lwWarehousinginfo);
    }

    /**
     * 批量删除仓库记录信息
     * 
     * @param ids 需要删除的仓库记录信息主键
     * @return 结果
     */
    @Override
    public int deleteLwWarehousinginfoByIds(Long[] ids)
    {
        return lwWarehousinginfoMapper.deleteLwWarehousinginfoByIds(ids);
    }

    /**
     * 删除仓库记录信息信息
     * 
     * @param id 仓库记录信息主键
     * @return 结果
     */
    @Override
    public int deleteLwWarehousinginfoById(Long id)
    {
        return lwWarehousinginfoMapper.deleteLwWarehousinginfoById(id);
    }
}
